import methods from '../methods/UserMethod'
const defaultState = {

  users: []

}
export default (state = defaultState, action) => {
  try{
    return methods[action.type](state,action)
  }catch(e){
    return state
  }
}
